/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Modulos;

import javax.swing.JButton;
import javax.swing.JPanel;

/**
 *
 * @author Overpower
 */
public class EditorPane extends javax.swing.JPanel {

    /**
     * Creates new form EditorPane
     */
    public EditorPane() {
        initComponents();
    }

    public JButton getCancelar() {
        return _btnCancel;
    }

    public JButton getEditar() {
        return _btnEdit;
    }

    public JButton getGuardar() {
        return _btnSave;
    }

    public JPanel getContenedor() {
        return _contenedor;
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        _btnEdit = new javax.swing.JButton();
        _btnSave = new javax.swing.JButton();
        _btnCancel = new javax.swing.JButton();
        _contenedor = new javax.swing.JPanel();

        _btnEdit.setText("Editar");
        _btnEdit.setEnabled(false);

        _btnSave.setText("Guardar");
        _btnSave.setEnabled(false);

        _btnCancel.setText("Cancelar");
        _btnCancel.setEnabled(false);

        javax.swing.GroupLayout _contenedorLayout = new javax.swing.GroupLayout(_contenedor);
        _contenedor.setLayout(_contenedorLayout);
        _contenedorLayout.setHorizontalGroup(
            _contenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        _contenedorLayout.setVerticalGroup(
            _contenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 269, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(_contenedor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(_btnEdit)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(_btnSave)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(_btnCancel)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(_contenedor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(_btnEdit)
                    .addComponent(_btnSave)
                    .addComponent(_btnCancel))
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton _btnCancel;
    private javax.swing.JButton _btnEdit;
    private javax.swing.JButton _btnSave;
    private javax.swing.JPanel _contenedor;
    // End of variables declaration//GEN-END:variables
}
